package br.com.educa.util;

import java.lang.reflect.Method;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.stereotype.Service;

@Service
public class MethodUtils {

	@Autowired
	private ParameterNameDiscoverer parameterNameDiscoverer;
	
	public String[] getParameters (Method m){
		return parameterNameDiscoverer.getParameterNames(m);
	}
	
}
